package com.cly.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = "cly.jwt")
@Data
@Component//加入ioc容器
public class JwtProperties {

    //生成JWT令牌的必要属性
    public String secretKey;
    public long time;
    public String tokenName;
}
